﻿@using KPIS.GERP.WEB.GAMS.Class

@{
    // General Message
	ViewBag.UnreadMessageCount = GimsServiceData.CountUnReadMessage();
	GimsServiceData.WarnMessage();

    ViewBag.UnreadTaskMessageCount = GimsServiceData.CountUnReadTaskMessage();
    ViewBag.UnwarnTaskMessageCount = GimsServiceData.CountUnWarnTaskMessage(); 
}

<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="utf-8" />
	<title>@ViewBag.Title - @GimsConfigReader.SystemName [GIMS]</title>
	<meta name="description" content="@ViewBag.Descr" />
	<meta name="viewport" content="width=device-width, initial-scale=1.0" />
	@Html.Partial("_CSS")

    @RenderSection("pageSpecificPluginStyles", false)
</head>
<body style="font-family:'Open Sans'">
    @Html.Partial("_Header")
	<div class="container-fluid" id="main-container">
		<a id="menu-toggler" href="#"><span></span></a>
        @Html.Partial("_Menu", SiteMenuUtility.GetMenu())
		<div id="main-content" class="clearfix">
			<div id="breadcrumbs">
                @Html.Partial("_SiteNavigate", SiteMenuUtility.GetMenu())
                @Html.Partial("_SearchBox")
			</div>
			<div id="page-content" class="clearfix">
				<div class="page-header position-relative">
					<h1>
                        @ViewBag.Title
						<small>
                            @if (!string.IsNullOrWhiteSpace(@ViewBag.Descr))
                            {
	                            <i class="icon-double-angle-right"></i>
	                            @ViewBag.Descr
                            }
						</small>
					</h1>
				</div>
				<div class="row-fluid">
                    @RenderBody()
				</div>
			</div>
		</div>
	</div>
	@{ int unreadMessage = KPIS.GERP.Models.Class.ConvertUtility.ConvertOrDefaultObjectInt(ViewBag.UnreadMessageCount);}
	@Html.Partial("_ModalMessage", unreadMessage)
    
	@{ int unreadTaskMessage = KPIS.GERP.Models.Class.ConvertUtility.ConvertOrDefaultObjectInt(ViewBag.UnreadTaskMessageCount);}
	@Html.Partial("_ModalTaskMessage", unreadTaskMessage)
     
    <a href="#" id="btn-scroll-up" class="btn btn-small btn-inverse">
		<i class="icon-double-angle-up icon-only bigger-110"></i>
	</a>
	@Html.Partial("_JS")
	@RenderSection("pageSpecificPluginScripts", false)
	@RenderSection("scripts", false)
	@Html.Partial("_LayoutScript")
</body>
</html>